package com.shuke.my_test.easyPoi.domain;


import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 舒克、舒克
 * @date 2025/7/3 11:11
 * @description
 */
@Data
public class UserDTO {





    @ExcelEntity(name = "男生" ,show = true)
    private Person boy;

    @ExcelEntity(name = "女生" ,show = true)
    private Person girl;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Person{
        @Excel(name = "姓名" ,  width = 20, orderNum = "1" )
        private String name = "测试";

        @Excel(name = "年龄" ,  width = 20, orderNum = "2" , isColumnHidden = false)
        private Integer age = 18;

        @Excel(name = "地址" ,  width = 20, orderNum = "3" )
        private String address = "中国";
    }


}
